package com.cloud.api.constants;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.io.Serializable;
@Data
public class MobileVo implements Serializable {
    @Schema(description = "手机号")
    @NotEmpty(message = "手机号不能为空")
    @NotNull(message = "手机号不能为空")
    @Size(min = 11, max = 11, message = "手机号长度错误")
    private String mobile;

    @Schema(description = "类型：LOGIN,CHANGE-MOBILE")
    @NotNull(message = "类型不能为空")
    @NotEmpty(message = "类型不能为空")
    private String type;
}